package com.wsm.kotlintest.common

import android.widget.Toast
import com.wsm.kotlintest.MyApplication

/**
 * Created by 王家宝 on 2018/7/19.
 * TEL:18241150668
 * MAIL:639586819@qq.com
 */

val toast: Toast by lazy { Toast.makeText(MyApplication.context, null, Toast.LENGTH_SHORT) }

fun Any.toast() {
    toast.setText(this as String)
    toast.show()
}

